﻿using UnityEngine;
using UnityEditor;
using System;
using Sirenix.OdinInspector;


//子弹基础模块(子弹) 
//各个类型子弹
//1.诸葛亮雷暴雨
[Serializable]
public class SkillBulletData: MyScriptableObject
{

    //子弹是否能打断
    [LabelText("是否能打断")]
    public bool canBreak;

    [Title("@this.bulletShapeDataDesc")]
    [BoxGroup( "基础初始形状变化", false,centerLabel: true) ]
    [LabelText("基础初始形状变化")]
    //############基础初始形状变化（状态机）
    public BulletShapeData bulletShapeData;

    [Title("@this.bulletSiteTargetDataDesc")]
    [BoxGroup("子弹位置和朝向", false, centerLabel: true)]
    [LabelText("子弹位置和朝向")]
    //############子弹位置和朝向（LOGIC）
    public BulletSiteTargetData bulletSiteTargetData;

    [Title("@this.bulletTrailDataDesc")]
    [BoxGroup("子弹移动方式", false, centerLabel: true)]
    [LabelText("子弹移动方式")]
    //############子弹移动方式 (状态机)
    public BulletTrailData bulletTrailData;

    [Title("@this.bulletTriggerDataDesc")]
    [BoxGroup("子弹伤害触发方式", false, centerLabel: true)]
    [LabelText("子弹伤害触发方式")]
    //############子弹伤害触发方式(状态机)
    public BulletTriggerData bulletTriggerData;

    [Title("@this.bulletFinishDataDesc")]
    [BoxGroup("子弹结束方式", false, centerLabel: true)]
    [LabelText("子弹结束方式")]
    public BulletFinishData bulletFinishData;


#if UNITY_EDITOR
    [HideInInspector]
    public string bulletShapeDataDesc { get { return this.bulletShapeData == null ? "请选择" : this.bulletShapeData.desc;  } }
    [HideInInspector]
    public string bulletSiteTargetDataDesc { get { return this.bulletSiteTargetData == null ? "请选择" : this.bulletSiteTargetData.desc; } }
    [HideInInspector]
    public string bulletTrailDataDesc { get { return this.bulletTrailData == null ? "请选择" : this.bulletTrailData.desc; } }
    [HideInInspector]
    public string bulletTriggerDataDesc { get { return this.bulletTriggerData == null ? "请选择" : this.bulletTriggerData.desc; } }
    [HideInInspector]
    public string bulletFinishDataDesc { get { return this.bulletFinishData == null ? "请选择" : this.bulletFinishData.desc; } }
#endif

}